<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>导航条</title>
    <link rel="stylesheet" href="../../css/bootstrap.css">
    <script src="../../js/jquery-1.11.2.min.js"></script>
    <script src="../../js/bootstrap.min.js"></script>
  <style>
      body{padding: 10px}
  </style>
</head>
<body>
<div class="navbar navbar-default navbar-inverse">
<ul class="nav navbar-nav">
    <li ><a href="#">首页</a></li>
    <li><a href="#">Html</a></li>
    <li class="active"><a href="#">java</a></li>
    <li><a href="#">oracle</a></li>
</ul>
</div>
<hr>
<div class="navbar navbar-default navbar-inverse">
    <div class="navbar-header">
        <a href="#" class="navbar-brand">bootstrap</a>
    </div>
    <ul class="nav navbar-nav">
        <li ><a href="#">首页</a></li>
        <li><a href="#">Html</a></li>
        <li class="active"><a href="#">java</a></li>
        <li class="dropdown">
            <a href="#" class=dropdown" data-toggle="dropdown">
                课程
                <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
            </ul>
        </li>
        <li><a href="#">oracle</a></li>
        <li><a href="#">oracle</a></li>
    </ul>
</div>
<hr>
<div class="container">
    <div class="row">
        <div class="col-md-10 col-lg-10 col-lg-offset-1  col-md-offset-1 col-xs-10  col-xs-offset-1">
        <div class="navbar navbar-default navbar-inverse">
            <div class="navbar-header">
                <a href="#" class="navbar-brand">bootstrap</a>
            </div>
            <ul class="nav navbar-nav">
                <li ><a href="#">首页</a></li>
                <li><a href="#">Html</a></li>
                <li class="active"><a href="#">java</a></li>
                <li class="dropdown">
                    <a href="#" class=dropdown" data-toggle="dropdown">
                        课程
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">html</a></li>
                        <li><a href="#">html</a></li>
                        <li><a href="#">html</a></li>
                        <li><a href="#">html</a></li>
                    </ul>
                </li>
                <li><a href="#">oracle</a></li>
                <li><a href="#">oracle</a></li>
            </ul>

        </div>
        </div>
    </div>
</div>
<hr>
<div class="navbar navbar-default navbar-inverse">
    <ul class="nav navbar-nav">
        <li ><a href="#">首页</a></li>
        <li><a href="#">Html</a></li>
        <li class="active"><a href="#">java</a></li>
        <li><a href="#">oracle</a></li>
    </ul>
</div>
<hr>
<div class="navbar navbar-default ">
    <div class="navbar-header">
        <a href="#" class="navbar-brand">bootstrap</a>
    </div>
    <ul class="nav navbar-nav">
        <li ><a href="#">首页</a></li>
        <li><a href="#">Html</a></li>
        <li class="active"><a href="#">java</a></li>
        <li class="dropdown">
            <a href="#" class=dropdown" data-toggle="dropdown">
                课程
                <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
                <li><a href="#">html</a></li>
            </ul>
        </li>
        <li><a href="#">oracle</a></li>
        <li><a href="#">oracle</a></li>
    </ul>
    <form action="" class="navbar-form navbar-left">
        <div class="form-group">
            <input class="form-control" type="text" name="" placeholder="请输入关键词">
        </div>
        <input type="submit" value="搜索" class="btn btn-primary">
    </form>
</div>
<hr>
<div class="navbar navbar-default ">
    <div class="navbar-header">
        <a href="#" class="navbar-brand">bootstrap</a>
    </div>
    <div class="nav navbar-nav">
       <li class="active"><a href="#">首页</a></li>
        <li> <a href="#">Html</a></li>
        <li>  <a href="#">java</a></li>
        <li>  <a href="#">oracle</a></li>
    </div>
</div>
</body>
</html>
